/*
 * @Author: wu07 1732042133@qq.com
 * @Date: 2023-02-22 14:20:41
 * @LastEditors: wu07 1732042133@qq.com
 * @LastEditTime: 2023-02-22 16:10:24
 * @FilePath: \悦旅\JoyTravel\travel\src\router\index.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Login from '@/views/Login/login';
import Enroll from '@/views/Enroll/enroll';
import Index from '@/views/Index';
import Square from '@/views/Square/square';
import Video from '@/views/Video/video';
import Message from '@/views/Message/message';
import Me from '@/views/Me/me';
import { Navigate, RouteObject } from 'react-router-dom';
const routes: RouteObject[] = [
    {
        path: '/',
        element: <Navigate to="/index" />,
    },
    {
        path: '/index',
        element: <Index />,
    },
    {
        path: '/square',
        element: <Square />,
    },
    {
        path: '/video',
        element: <Video />,
    },
    {
        path: '/message',
        element: <Message />,
    },
    {
        path: '/me',
        element: <Me />,
    },
];
export default routes;